package com.dikeleakagedetection.myapplication.logic.dao

import androidx.room.*

@Dao
interface UserDao {
    @Insert
    fun insertUser(user: User): Long

    @Update
    fun updateUser(newUser: User)

    @Query("select * from User where username = :username")
    fun loadUser(username: String): User

    @Delete
    fun deleteUser(user: User)
}                                                                                    